package com.hifar.test.collectdata.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.model.BaseModel;
import com.hifar.plat.AopOption.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 力学设备运行记录
 * @date 2025/4/9 10:40
 */
@Data
@ApiModel("力学设备运行记录")
@TableName("hf_env_dynamics_equip_record")
public class HfEnvDynamicsEquipRecord extends BaseModel {

    @ApiModelProperty("设备id")
    @NotBlank(message = "设备id不能为空!")
    private String equipId;

    @ApiModelProperty("开始时间")
    @NotNull(message = "开始时间不能为空!")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @NotNull(message = "结束时间不能为空!")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("状态")
    @Dict(dictCode = "hf_equip_running_vibrate_status")
    private String vibrateStatusPv;
    @ApiModelProperty("振动量")
    private BigDecimal vibrateValuePv;

    @ApiModelProperty("振动方向")
    @Dict(dictCode = "hf_equip_running_direction")
    private String directionPv;

}
